package com.j2eefast.bussiness.contract.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.bussiness.contract.entity.BusEquipmentRecordsEntity;
import com.j2eefast.bussiness.contract.entity.BusRepairEntity;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>设备维修</p>
 *
 * @author: summer
 * @date: 2021-06-09 10:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface BusEquipmentRecordsMapper extends BaseMapper<BusEquipmentRecordsEntity> {

    public boolean deleteByIds(@Param("ids") Long[] ids);
    public boolean updateCheck(@Param("id") Long id, @Param("userId") Long userId);


    /**
     * 页面查询流程实例分页
     * @return
     */
    Page<BusEquipmentRecordsEntity> findPage(IPage<?> params,
                                                    @Param("equipmentName") String equipmentName,
                                                    @Param("equipmentName2") String equipmentName2,
                                                    @Param("equipmentModel") String equipmentModel,
                                                    @Param("equipmentModel2") String equipmentModel2,
                                                    @Param("sampleCode") String sampleCode,
                                                    @Param("uses") String uses,
                                                    @Param("remark") String remark,
                                                    @Param("beginTime") String beginTime,
                                                    @Param("beginTime2") String beginTime2,
                                                    @Param("endTime") String endTime,
                                                    @Param("endTime2") String endTime2,
                                                    @Param("sql_filter") String sql_filter);

    List<BusEquipmentRecordsEntity> findList(
//            @Param("name") String name,
//            @Param("ceoName") String ceoName,
//            @Param("paymentNuit") String paymentNuit,
//            @Param("contractSum") String contractSum,
//            @Param("projectName") String projectName,
            @Param("ids") Long[] ids,
            @Param("sql_filter") String sql_filter);

}
